// 项目状态 -1 待提交,0 待确认, 1 进行中, 3 已完结, 4 逾期
export const statusCode = [
  {
    key: -1,
    value: '待提交'
  },
  {
    key: 0,
    value: '待确认'
  },
  {
    key: 1,
    value: '还款中'
  },
  {
    key: 3,
    value: '已结清'
  },
  {
    key: 4,
    value: '逾期中'
  },
]

export const getCodeValue = (arr, id) => {
  const item = arr.filter(item => item.key === id)
  if (item.length < 1) return
  return item[0].value
}